// 章 路由

const router = require("koa-router")()

const {
    chapterApi
} = require("../../../controller/catalogue/chapter")

const {
    check
} = require("../../../middleware/routercheck")

router.get("/chapter/:id", check("getchapter"), chapterApi)
router.get("/chapter", check("getchapter"), chapterApi)
router.post("/chapter", check("createchapter"), chapterApi)
router.put("/chapter/:id", check("editchapter"), chapterApi)
router.delete("/chapter/:id", check("removechapter"), chapterApi)


module.exports = router